﻿<%@ Page Title="Rel. de Pré-Inscrição" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RelatorioPreInscricao.aspx.cs" Inherits="AcadPosApp.Relatorios.RelatorioPreInscricao" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .style4
        {
        }
        .style5
        {
            width: 100%;
        }
        .style6
        {
            width: 162px;
        }
        .style7
        {
            width: 168px;
        }
        .style9
        {
            width: 335px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlPesquisa" runat="server" GroupingText="Consultas de Cursos">
                <table class="style1">
                    <tr>
                        <td class="style9">
                            Áreas de Conhecimento
                        </td>
                        <td class="style12">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:DropDownList ID="ddlAreaConhecimento" runat="server" Width="300px" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlAreaConhecimento_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            Descrição
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:TextBox ID="txtPesquisa" runat="server" MaxLength="250" Width="300px" Required="Required"></asp:TextBox>
                            <!-- <asp:RequiredFieldValidator ID="requiredPesquisa" runat="server" ControlToValidate="txtPesquisa"
                        ErrorMessage="É necessário preencher o campo pesquisa!" ForeColor="Red" ValidationGroup="pesquisa"
                        SetFocusOnError="True">*</asp:RequiredFieldValidator> -->
                        </td>
                        <td>
                            <asp:Button ID="btnConsultar" formnovalidate="formnovalidate" runat="server" OnClick="btnConsultar_Click"
                                Text="Consultar" Width="100px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:RadioButton ID="rdbTodosCursos" runat="server" GroupName="radioCursos" Text="Todos os Cursos"
                                AutoPostBack="True" OnCheckedChanged="rdbTodosCursos_CheckedChanged" />
                            <asp:RadioButton ID="rdbPorCurso" runat="server" GroupName="radioCursos" 
                                Text="Por Curso" AutoPostBack="True" 
                                oncheckedchanged="rdbPorCurso_CheckedChanged" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwPesquisa" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                    DataKeyNames="ID_CURSO" EmptyDataText="Dados não localizados..." GridLines="Vertical"
                    Width="45%" OnRowDataBound="gvwPesquisa_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvwPesquisa_PageIndexChanging"
                    OnSelectedIndexChanged="gvwPesquisa_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True">
                            <ItemStyle Width="1%" />
                        </asp:CommandField>
                        <asp:BoundField DataField="ID_CURSO" HeaderText="Código">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DESCRICAO" HeaderText="Cursos">
                            <ItemStyle HorizontalAlign="Left" Width="75%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" Height="25px" Width="25px" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                            <ItemStyle Width="10%" HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <table>
                    <tr>
                        <td class="style6">
                            Data Início
                        </td>
                        <td class="style7">
                            Data Fim
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtDtInicio" runat="server" MaxLength="10" required="" Width="150px"></asp:TextBox>
                            <asp:CalendarExtender ID="calendarioDtInicio" runat="server" Enabled="True" TargetControlID="txtDtInicio">
                            </asp:CalendarExtender>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDtFim" runat="server" MaxLength="10" required="" Width="140px"></asp:TextBox>
                            <asp:CalendarExtender ID="calendarioDtFim" runat="server" Enabled="True" TargetControlID="txtDtFim">
                            </asp:CalendarExtender>
                            <%--<asp:CalendarExtender ID="CalendarExtender1" runat="server">
                    </asp:CalendarExtender>--%>
                        </td>
                        <td>
                            <asp:Button ID="btnImprimir" formnovalidate="formnovalidate" runat="server" OnClick="btnImprimir_Click"
                                Text="Imprimir" />
                        </td>
                    </tr>
                </table>
                <br />
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnImprimir" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
